package org.springblade.modules.admin.entity;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

/**
    * 维保业务日志
    */
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "blade_maintain_business_log")
public class MaintainBusinessLog extends TenantEntity {
    /**
     * 关键字id
     */
    @TableField(value = "param_key")
    private Long paramKey;

    /**
     * 更新前内容
     */
    @TableField(value = "old_content",typeHandler = JacksonTypeHandler.class)
    private JSONObject oldContent;

    /**
     * 更新后内容
     */
    @TableField(value = "new_content",typeHandler = JacksonTypeHandler.class)
    private JSONObject newContent;

    /**
     * 对应业务类型
     */
    @TableField(value = "`type`")
    private Integer type;
}
